<table>
    <tbody>
    
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.id" default="Id" />:</td>
            <td valign="top" class="value">${fieldValue(bean: creditControlInstance, field: "id")}</td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.dealer" default="Dealer" />:</td>
            <td valign="top" class="value">
                <g:link controller="dealer" action="show" id="${creditControlInstance?.dealer?.id}">${creditControlInstance?.dealer?.encodeAsHTML()}</g:link>
            </td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.orderAmount" default="Order Amount" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.orderAmount}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.openingSell" default="Opening Sell" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.openingSell}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.receivableAmout" default="Receivable Amout" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.receivableAmout}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.receivableNote" default="Receivable Note" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.receivableNote}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.receivable" default="Receivable" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.receivable}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.credit" default="Credit" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.credit}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.creditExceed" default="Credit Exceed" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.creditExceed}" format="###,##0.00"/></td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.creditBalance" default="Credit Balance" />:</td>
            <td valign="top" class="value"><g:formatNumber number="${creditControlInstance?.creditBalance}" format="###,##0.00"/></td>
        </tr>

        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.owner" default="Owner" />:</td>
            <td valign="top" class="value">
                <g:link controller="user" action="show" id="${creditControlInstance?.owner?.id}">${creditControlInstance?.owner?.encodeAsHTML()}</g:link>
            </td>
        </tr>

        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.createdBy" default="Created By" />:</td>
            <td valign="top" class="value">
                <g:link controller="user" action="show" id="${creditControlInstance?.createdBy?.id}">${creditControlInstance?.createdBy?.encodeAsHTML()}</g:link>
                , <g:formatDate date="${creditControlInstance?.dateCreated}" />
            </td>
        </tr>
        
        <tr class="prop">
            <td valign="top" class="name"><g:message code="snapshot.creditControl.lastModifiedBy" default="Last Modified By" />:</td>
            <td valign="top" class="value">
                <g:link controller="user" action="show" id="${creditControlInstance?.lastModifiedBy?.id}">${creditControlInstance?.lastModifiedBy?.encodeAsHTML()}</g:link>
                , <g:formatDate date="${creditControlInstance?.lastUpdated}" />
            </td>
        </tr>
               
    </tbody>
</table>
